Fixed lightbox null image reference issue