Fixed return value of image::read
Fixed convert_pixel_format