public HistoryGUI(List<BufferedImage> history, GUI g) {
		this.g = g;
		frame = new JFrame();
		int width = history.size();
		width += (10 - history.size() % 10); // rounds UP to the nearest 10.
		System.out.println("Width: " + width);
		/*
		 * Figure out how big to make our window (going to max width before
		 * getting taller)
		 */
		frame.setPreferredSize(new Dimension(1020, (int)((width * 10.2) + 2)));
		System.out.println(frame.getPreferredSize());
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frame.getContentPane().setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));
		/* For each image, draw a 10% scale of it. */
		for (BufferedImage image : history) {
			ImagePanel imagePanel = new ImagePanel();
			imagePanel.setMinimumSize(imagePanel.getPreferredSize());
			imagePanel.updatePanel(resize(image, 100,100));
			frame.getContentPane().add(imagePanel);
		}
		// Pretty up and display
		frame.pack();
		frame.addMouseListener(new HistoryResponder(this));
		frame.setVisible(true);

	}