struct pixel **read_pixel_array(FILE *image, int pixel_array_offset, int width, int height) {
    struct pixel** m = malloc(sizeof(struct pixel *) * height);

    for (int i = 0; i < height; i++){
        m[i] = malloc(sizeof(struct pixel) * width);
        fseek(&width, sizeof(struct pixel), pixel_array_offset, image);
        fread(m[i], sizeof(struct pixel), width, image);
    }

    return m;
}

fix