Fixed canvas rendering for cubic bezier