Replaced calls to cout from photo module, by CV_Assert