Implemented wrapping support for Bezier curves, using a linear function to wrap.