add colorbar autodetection
added automatic colorbar detection to distortion and color correction
mislaneous changes
improved colorbar detectiion