img {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 300px;
   height: 300px;
   margin-top: -175px; /* Half the height */
   margin-left: -175px; /* Half the width */
}