min contour len param added