add option to use polylines instead of curves
add option dialog for polylines