public void nextImage() {
		if (historyIndex >= history.size() - 1) {
			textArea.append("No images left!\n");
		} else {
			historyIndex++;
			imagePanel.updatePanel(history.get(historyIndex));
			imagePanel.update(imagePanel.getGraphics());
		}
	}