Add initial contour detection