svg creation path handling improoved