Found out pixels are never off by more than 1...
Fix off-by-one errors for darker
Fix histogram off-by-1 errors