public void changed (ObservableValue arg0, Object oldValue, Object newValue) {
		int intValue = ((Double)newValue).intValue();
		slider.setValue(intValue);
		ImageEngine engine = ImageEngine.getInstance();
		if (engine.getOriginalImage()!=null) {
			Image modifiedImage = engine.erase(intValue);
			imageView.setImage(modifiedImage);
		}
	}