Cursor

Render the cursor manually, which means we can support texture rotation and don't need the image rotation hack anymore.