fix incorrect implementation of CreateDiskImageDeviceMapper
assert is a keyword...
be a class method, style fix...