fixed issue where too many valid_contours were being detected with images
that only had straight lines.