Pixel array in the image struct

I’m confused about the implementation of the image structure. Image is supposed to have a pointer to an array with pixels but to me it seems like image only has a pointer to a singel pixel.
Can somebody explain, why this is a pointer to an array and not a single pixel?