added Pixel struct
added Pixel struct
refactored Scanner to use the Pixel struct