Support scaling and cropping