Modify contour finding and adding display text.