protected void checkType() {
		for (int x = 0; x < getWidth(); x++) {
			for (int y = 0; y < getHeight(); y++) {
				double r = red.getPixel(x, y);
				double g = green.getPixel(x, y);
				double b = blue.getPixel(x, y);
				if (r != g || r != b || g != b) {
					type = ImageType.COLOR;
					return;
				}
			}
		}
		type = ImageType.GREYSCALE; 
		return;
	}