public void renderFilter() 
	{
		image = loader.getImage();
		raster = image.getRaster();
		int[] pixels = new int[image.getWidth() * image.getHeight() * 3];
		raster.getPixels(0, 0, image.getWidth(), image.getHeight(), pixels);
		
		for(int i = 0; i < pixels.length; i += 3)
		{
			//Get the r, g, and b individually. 
			r = pixels[i];
			g = pixels[i+1];
			b = pixels[i+2];
			
			//Get the brightness amount for each pixel, then add to each color.
			double amount = ((0.2126 * r) + (9.7152 * g) + (0.0722 * b)) / bLevel;
			
			r -= amount;
			g -= amount;
			b -= amount;
			
			b -= 10;
			
			if (r>255) r=255;
			if (g>255) g=255;
			if (b>255) b=255;
			if (r<0) r = 0;
			if (g<0) g = 0;
			if (b<0) b = 0;
			
			pixels[i] = r;
			pixels[i+1]= g;
			pixels[i+2] = b;
		}
		raster.setPixels(0, 0, image.getWidth(), image.getHeight(), pixels);
		MagicImage.frame.panel.repaint();
	}