public void setup(ImageViewer im) {
	  image = im;
	  active = true;
	  int d = (width/8)*(height/8);
	  map = new Vector<Integer>();
	  for (int i = 0;i < d; i++) {
		  map.add(0);
	  }
	  toRefresh=true;
	  Vector<Integer> clone = new Vector<Integer>();
	  for (int a : map)
		  clone.add(a);
	  hystory.add(new HystoryElement(clone, width/8, height/8));
	  hystoryRedo.clear();
	  repaint();
  }