Fix CIEDE script for high bit depth