Rotation and proper resizing