struct pixel **read_pixel_array(FILE *image, int pixel_array_offset, int width, int height) {

    struct pixel **pixel_data = malloc(sizeof(struct pixel) * height);
    fseek(image, 10, pixel_array_offset);

    for (int i = 0; i < height; i ++){
        pixel_data[i] = malloc(sizeof(struct pixel) * width);
    }

    for (int i = 0; i < height; i ++){
        for (int j = 0; j < width; j ++){
            struct pixel temp;

            fread(&temp.blue, 1, 1, image);
            fread(&temp.green, 1, 1, image);
            fread(&temp.red, 1, 1, image);

            pixel_data[i][j] = temp;
        }
    }
    return pixel_data;
}
Read and store bitmap pixel array.