Add contours extraction stage.