Image will only update if min!=max, fixing a possible crash.
Merge branch 'master' of https://github.com/ADyson/clTEM