Rotation works now. The only thing left is resizing while rotated.