added contour_detector agent. but contours are not colored, gotta take a look later.