libdisk: ImageDisk (.IMD) write support.