Write to svg format prototype 2