Generate thumbnails for screenshots and fix fancybox