public void goToImage(int index){
		if(index < 0 || index >= history.size()) return;
		historyIndex = index;
		imagePanel.updatePanel(history.get(historyIndex));
		imagePanel.update(imagePanel.getGraphics());
	}