private boolean bufferedImagesEqual(BufferedImage a, BufferedImage b) {
		if (a.getWidth() != b.getWidth() || a.getHeight() != b.getHeight()) {
			return false;
		}
		for (int i = 0; i < a.getWidth(); i++) {
			for (int j = 0; j < a.getHeight(); j++) {
				if (a.getRGB(i, j) != b.getRGB(i, j)) {
					return false;
				}
			}
		}
		return true;
	}