move drawing in ppb_graphics2d to .Flush