public String getStringFromImage(){
		System.out.println("Reading Morse Code");
		if(buffered == null){
			System.out.println("buffered is null :/");
			return null;
		}
		String morseCode = "";
		int distance=0;
		for(int i = 0; i<buffered.getHeight();i++){
			for(int j=0; j<buffered.getWidth();j++){
				//System.out.print(buffered.getRGB(j, i) + ",");
				if(buffered.getRGB(j, i)==-1){
					//Pixel is white
					System.out.println("Distance from last white pixel: "+distance);
					morseCode = morseCode+new String(Character.toChars(distance));
					distance = 1;
				}
				else{
					//Pixel is not white
					distance++;
				}
			}
		}
		System.out.println(morseCode);
		return morseCode;
	}