implement svg polyline generation