showing a loading img while the image loads