struct pixel *pointers = malloc(sizeof(struct pixel) * m);
First, allocate space for m `struct pixel *` values, where m is the 
 *    height of the image.  Each pointer will eventually point to one row of 
 *    pixel data.