hist eq fix
quantize WIP