offscreen painting, but some additional bugs