private static ArrayList<int[]> decodeRLE(ObjectInputStream os)
			throws IOException, ClassNotFoundException {
		int width = os.readInt();
		int height = os.readInt();
		int numRuns = os.readInt();
		ArrayList<int[]> runs = new ArrayList<int[]>(numRuns);
		for (int i = 0; i < numRuns; i++) {
			runs.add((int[]) os.readObject());
		}
		return runs;
	}