void read_bitmap_metadata(FILE *image, int *pixel_array_offset, int *width, int *height) {
    fseek(image, 10, SEEK_SET);
    fread(pixel_array_offset, sizeof(int), 1, image);
    fseek(image, 18, SEEK_SET);
    fread(width, sizeof(int), 1, SEEK_SET);
    fseek(image, 22, SEEK_SET);
    fread(height, sizeof(int), 1, SEEK_SET);
}