Fix CastException by replacing IImageTrace by IPaletteTrace
Fix to http://jira.diamond.ac.uk/browse/SCI-1435:
make sure to mute/unmute the GuiManager before/after each guiupdate