add a spinner when images are loading in the lightbox