Updated to use the new CLAHE algorithm