'Delete the given image.
:raises ImageNotFound: if the image does not exist.'

def delete(self, context, image_id):

    removed = self.images.pop(image_id, None)
    if (not removed):
        raise exception.ImageNotFound(image_id=image_id)
