Fix some deletions in images. Move the metadata retrieval endpoints.