public void doLoadImage(BufferedImage openImage) {

		width = openImage.getWidth();
		height = openImage.getHeight();
		pixels = new int[height][width];
		temp = new int[height][width];
		temp2 = new int[height][width];

		for (int i = 0; i < openImage.getHeight(); i++) {
			for (int j = 0; j < openImage.getWidth(); j++) {
				pixels[i][j] = openImage.getRGB(j, i) & 255;
			}
		}
	}