added Mat to BufferedImage converter class