private OCRImage getImage(Image image, boolean invert) {
		BufferedImage temp = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
		temp.getGraphics().drawImage(image, 0, 0, null);
		return getImage(((DataBufferInt) temp.getRaster().getDataBuffer()).getData(), temp.getWidth(), temp.getHeight(), 50, invert);
	}