Chapter 2 Working with Pixels in Grayscale Images