implemented contours; @ToDo: find contour properties (area,centroud,etc)