Simplify the unpack code some more
Remove the unique ID setting
Simplify getMetadata into getImageNumber