more elegant solution to modify the svgs which keeps the svgs editable