fix cropping transformation