Clicking while drawing also paints the initially clicked rectangle.