Optimize drawing of Bézier curves.

Use approximated length of a curve as number of draw steps.