Clip drawn rectangles more correctly.