refactored drawing of control points and curve points