'Retrieves image metadata using registry for v1 api and creates
dictionary-like mash-up of image core and custom properties.'

def _get_v1_image_metadata(self, request, image_id):

    try:
        image_metadata = registry.get_image_metadata(request.context, image_id)
        return utils.create_mashup_dict(image_metadata)
    except exception.NotFound as e:
        LOG.debug("No    metadata    found    for    image    '%s'", image_id)
        raise webob.exc.HTTPNotFound(explanation=e.msg, request=request)
