animation added to image loading