public void stateChanged(ChangeEvent e) {
			int w = f.getMapWidth();
			int h = f.getMapHeight();
			if (w == hystory.get(hystory.size()-1).getWidth() && h == hystory.get(hystory.size()-1).getHeight()) return;
      		imMapper.setMode(w*8, h*8);
      		Vector<Integer> clone = new Vector<Integer>();
      		for (int a : imMapper.getMap()) clone.add(a);
     		hystory.add(new HystoryElement(clone, w, h));
       		hystoryRedo.clear();
		}