svg: add utils methods for path construction