working on reworking PGraphics delegate