add a method to create image_u8 from opencv grayscale mat