FS#10496: remove function read_image_file_offset, it had a bug and is not used anyway.