def get_image_size(manifest: dict):
    """
    Sum the layer sizes from the manifest to get an image size
    :param manifest:
    :return:
    """

    return sum([x.get("size", 0) for x in manifest.get("layers", [])])