Fixed bug in OutputContours.
Merge branch 'contourbug'