fixed the lightbox feature to only work on real images