update svg to use attributes