turn curved svg paths into paths with only line segments