public static void makeImage(Color[][] colors,double ldMax, String fileName){
		int width = colors[0].length;
		int height = colors.length;
		double maxA = ldMax;
		double r;
		double g;
		double b;
		for(int i=0; i < height; i++){
			for(int j=0; j < width; j++){
				r = colors[i][j].getR();
				g = colors[i][j].getG();
				b = colors[i][j].getB();
				if(r > maxA){
					maxA = r;
				}
				if(g > maxA){
					maxA = g;
				}
				if(b > maxA){
					maxA = b;
				}
			}
		}		

		Color max = new Color(maxA,maxA,maxA);
		
		int[] pixels = new int[width * height];
		int count = 0;
		for(int i=0; i < height; i++){
			for(int j=0; j < width; j++){
				int rgb = colors[i][j].getRGB(max);
				//System.out.println("RGB: "+rgb);
				pixels[count] = rgb;
				count++;
			}
		}

		try{
			BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
			img.getRaster().setDataElements(0, 0, width, height, pixels);
			File outputFile = new File(FILE_LOCATION+fileName);
			ImageIO.write(img,"png",outputFile);
		} catch (IOException e) {
			System.err.print(e);
		}
	}