keep aspect ratio on image and add fancybox effect