[[ Bug 11390 ]] Fix incorrect cropping of resized image