Add loading gif to image preview