Reworked the resizing of rectangles so you can resize from any corner.
Updating TODO.