public static void main(String[] args) {
		ImageInfo imageInfo = new ImageInfo();
		if (args.length == 0) {
			run(System.in, imageInfo);
		} else {
			int index = 0;
			while (index < args.length) {
				FileInputStream in = null;
				try {
					String filename = args[index++];
					System.out.print(filename + ";");
					in = new FileInputStream(filename);
					run(in, imageInfo);
					in.close();
				} catch (Exception e) {
					System.out.println(e);
					try {
						in.close();
					} catch (Exception ee) {
					}
				}
			}
		}
	}