module for new photogallery (remove copy-paste stuff) and proportional resize for vertical photos