public float compareImage(BufferedImage src, BufferedImage comp) {
		float percent = 1.0f;
		int amtOfPixels = 0;
		for (int x = 0; x < src.getWidth(); x++) {
			for (int y = 0; y < src.getHeight(); y++) {
				amtOfPixels += src.getRGB(x, y) == 0xff000000?0:1;
			}
		}
		float delta = 1.0f/(src.getWidth() * src.getHeight());
		for (int y = 0; y < src.getHeight(); y++) {
			for (int x = 0; x < src.getWidth(); x++) {
				//Pixel where there is none in compare image
				if (src.getRGB(x, y) != 0 && comp.getRGB(x, y) != 0xffff0000) {
					percent -= delta * 2;
				}
				//No pixel where there is one in compare image
				if (src.getRGB(x, y) == 0 && comp.getRGB(x, y) == 0xffff0000) {
					percent -= delta;
				}
			}
		}
		return percent;
	}