cropThumbnailImage improvement