added bezier approximation with lines