Normalize bezier length and fix some brush corner cases