} else { System.out.println("Imp is null, command "+cmd+" not run"); }
}
    public void runImageCommand(String cmd, ImagePlus imp) {		System.out.println("Running image command "+cmd);    	    	if (imp!=null) {			if (!imp.lock())				return;   // exit if image is in use			ImageCanvas canvas = imp.getCanvas();			if (cmd.equals("Revert"))				{imp.revert(); }			else if (cmd.equals("Save Local"))				{new FileSaver(imp).save(); }			else if (cmd.equals("Paste"))				{ canvas.paste(); }			else if (cmd.equals("Undo"))				{ Undo.undo(); }			else				IJ.error("Unrecognized command: " + cmd);			imp.unlock();		} else {			System.out.println("Imp is null, command "+cmd+" not run");		}	}