Made the rectangle mode work with non-square rectangles.