January 1, 2020 this code is based on https://thecodingtrain.com/CodingChallenges/090-floyd-steinberg-dithering.html