minor change to exportSVG function