public static void main(String[] args) throws ImageFormatException, IOException {
		System.out.println("Please select a picture to encode or decode.");
		String pictureLoc = FileChooser.pickAFile();
		System.out.println("Do you want to Encode or Decode this image?");
		@SuppressWarnings("resource")
		Scanner in = new Scanner(System.in);
		String input;
		outer: while (true) {
			input = in.nextLine().trim().toLowerCase();
			if (input.matches("(d.*|e.*)")) {
				break outer;
			} else {
				System.out.println("Wrong input, please try again.");
			}
		}

		PictureEncoder pe = new PictureEncoder(pictureLoc);
		// PictureEncoder pe = new
		// PictureEncoder("P:\\Programming\\Workspace\\ProgrammingClass\\Refs\\Flowers.jpeg");
		// // Me
		if (input.matches("e.*")) {
			System.out.println("What message do you want encoded?");
			String message = in.next().trim();
			pe.encode(message);
			System.out.println("You encoded '" + pe.decode() + "'.");
		} else {
			System.out.println("The message is:");
			System.out.println();
			System.out.println(pe.decode());
		}
	}