Deleted rotate in transform_shape method.