Fixed race condition that broke range selection and color map switching. Fixed pan tool for histogram.