path performance refactoring in util.svg
 - related code changed