lightbox images to base64