Disable all the buttons on reset button click
Simplify coordsToIndex helper function to have default m value

- Add notes to explain what m is
Add helpers to check for image data values
Use named vars instead of magic numbers

- WHITE global var recently added to Helpers