Fix image format conversion from opencv to bob and reverse. Implement unit test for these functions.