draw, fill, and clear rectangle