refactor SvgManipulator