changed min contour size threshold