Swapped sy and dy to correctly position rectangle model after rotation. Otherwise, rectangle model would be defined by bottom left and top right. We want the opposite.
Rotation worked upon (saving and loading, overlay rotation still needs work).