adding spinner to image loading