Debugging the OpenCV write failure.

Cause: the gold (reference) file name must have a valid/known image ending, like
.jpg