public BufferedImage flip(BufferedImage b) {
		AffineTransform imageFlip = AffineTransform.getScaleInstance(-1, 1);
		imageFlip.translate(-b.getWidth(null), 0);
		AffineTransformOp op = new AffineTransformOp(imageFlip,
				AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
		b = op.filter(b, null);
		
		return b;
	}