Code to process the image into pixel data.