Adds fancybox functionality to the image gallery.