Fixed image file writing in ocv stitcher.