Revised findContours()