Implement drawing rectangles