Just use dijit.Dialog instead ... dojox.image.Lightbox inherits from dijit.dialog, and is designed specifically for viewing images.
You can see examples of dijit.Dialog, tweaked specifically for XPages at the XPages Blog (xpagesblog.com), and more specifically if you go to XPages Blog Samples at www.xpagecontrols.com you can see a sample implementation.