Refactored image gallery; upgraded fancybox lib.