Add ContourDetection phase