UMVE: fix thumbnails for non-square images