Code

patch by Dennis Lin: optionally for debugging paint the rect-to-redraw yellow