lightbox rendering fixes