Added a pixel class to organize the pixel data.