Implement shape resize or not with/without cropping for rotation transformation