Switched to use Rect.x1/x2/y1/y2 for more readable code