One fix for panoramic pictures
One fix for panoramic pictures

Picking only one small dimension (vs both) is breaking panoramic pictures
viraj96/gallery,IATkachenko/gallery,owncloud/galleryplus,setnes/galleryplus,imjalpreet/gallery,tahaalibra/gallery,imjalpreet/gallery,interfasys/galleryplus,setnes/galleryplus,setnes/gallery,IATkachenko/gallery,desaintmartin/gallery,tahaalibra/gallery,leftees/galleryplus,owncloud/gallery,owncloud/galleryplus,IATkachenko/gallery,patman15/galleryplus,patman15/galleryplus,leftees/galleryplus,patman15/galleryplus,viraj96/gallery,setnes/galleryplus,tahaalibra/gallery,interfasys/galleryplus,viraj96/gallery,owncloud/galleryplus,interfasys/galleryplus,efueger/galleryplus,desaintmartin/gallery,desaintmartin/gallery,setnes/gallery,efueger/galleryplus,leftees/galleryplus,imjalpreet/gallery,owncloud/gallery,owncloud/gallery,setnes/gallery