Resize image from thumbnail when cropping it