no need anymore to pass or store the dimensions of thumbnails.
the thumbnail type (thumbnail or aspectRatioThumbnail) can be passed as a param.