cas: Add function to extract the image manifest from an image in the store.