Lightbox: Fixed printing issues (fixes #5424)