De-magic-numbering the DiskImage class