private BufferedImage readBufferImage(byte[] imageDataInByte) {
		if (this.isValid()) {
			System.out.println(imageDataInByte.toString());
			ByteArrayInputStream in = new ByteArrayInputStream(imageDataInByte);
			try {
				// TODO: check why large Google Camera photo is not accepted
				BufferedImage result = ImageIO.read(in);
				return result;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			return null;
		} else {
			System.out.println("Image is invalid");
			return null;
		}
	}