adding support for PGraphics & PShape