improved loading process for large images

now it shows the lightbox while the image is loading, as well as
pre-loads the images.