Fixes
Sum of histogram is just image W*H