new interface for image::io::mat