add .as_svg_file method