Is it possible to draw main graphics on a PGraphics?

I updated the project, more here: