CodePen

HTML

            
              <img  width="60%" height="100px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQI12NgYPgPAAEDAQDZqt2zAAAAAElFTkSuQmCC">
            
          
!

CSS

            
              body {padding:20%; text-align:center;}
            
          
!

JS

            
              
            
          
!
999px
Loading ..................