issue #881 fixed color image bugs (crash in measurements, display worms 3x) + defensive programming for crash on mouse click.