moved (soon to be) common code from pspsvg to grdxsvg