keep a list of rects that have been painted on the buffer and combine them at the final EndDraw to only copy the buffer once