Contour detection and rendering.