create bezer curve from points