I have a pixel array where the width and height correspond to that of the image. In each row, I store a series of pixels ranging from 0 to 255 and the image is grayed out.