public void update(Observable o, Object arg) {
if (!(arg instanceof GeoreferencingCommandEventChange))
return;
GeoreferencingCommandEventChange cmdEvent = (GeoreferencingCommandEventChange) arg;
switch (cmdEvent.getEvent()) {
case IMAGE_LOADED:
setItemsEnabled(true);
break;
default:
setCertainToolsEnabled(cmd.canEnableImageTools());