Modified and integrated fancybox code for images.