How to initialize the struct pixel values? What am I doing wrong?
struct pixel **read_pixel_array(FILE *image, int pixel_array_offset, int width, int height) {
      struct pixel **pixel_array = malloc(sizeof(struct pixel *) * height);

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

      fseek(image, pixel_array_offset, SEEK_SET);

      for (int i = 0; i < height; i++){
        for (int j = 0; i < width; i++){
          fread(pixel_array[i][j], 1, 3, image);
        }
      }

      return pixel_array;
}