public static int[][] loadColors(String filename) throws FileNotFoundException{
		int[][] colors = new int[COLORDEPTH][3];
			
		if (filename.equals("")){
			return null;
		}
		
		File colorFile = new File("src" + File.separator + "mnd" + File.separator + filename);
		
		if(!colorFile.exists()){	
			System.out.print("Invalid filename! Mandelbrot is drawn without colors");
			JOptionPane.showMessageDialog(null,"Invalid filename! Mandelbrot is drawn without colors","No such file!",JOptionPane.WARNING_MESSAGE);
			return null;
		}
		
		Scanner fileScanner = new Scanner(colorFile);
		//The following code assumes a properly formatted color file
		for (int i=0; i<COLORDEPTH; i++){
			for (int j=0; j<3; j++){
				if (fileScanner.hasNextInt()){
					colors[i][j]=fileScanner.nextInt();
				}
			}
		}
		fileScanner.close();
		
		return colors;
	}