Add (untested) method to convert BufferedImage -> Mat object