Add paintRectangle