Changed setting of originalmatrix to be compatible with PGraphics objects