adaptive and scalable 2D bezier curves