fixes lightbox rendering issues
fixes issue #10