schema: make ImageID an Hash pointer.

Otherwise unmarshalling a dependency without an ImageID will create an empty
Hash struct that will fail validation on marshalling.