Added saving of SVG tree