bugfix/WEBUMENIA-1189: smaller images cause incorrect padding
bugfix/WEBUMENIA-1189: smaller images cause incorrect padding

SlovakNationalGallery/web-umenia-2,SlovakNationalGallery/web-umenia-2,SlovakNationalGallery/web-umenia-2,SlovakNationalGallery/web-umenia-2