Fix calculating eqized image histogram  error.