Rotate before resizing