Another possibility is to pass an array of points and point types to extend_current_figure, and let it take care of updating the path.
Actually, we probably don't need an array of point types, we can assume that all points have the same type except for the first point, which is either Start or Line.