Modify svg in place