release the Mat image after it has been imported into the BufferedImage