Is it possible to have the curves generated be Bezier curves? How would the above code change, if at all?