looking into contours using example code from web (see credit in contours_ex.c top comment.