Fixed indexOfMaxCurvature when stroke size is 3