modified the code not use default width and cleaned some bugs related to valuetype
fixed some compilation bugs related to paramter BezierType