Conditioned saving of frames
New file contours.cpp for extracting contours