def workflow_image_location(instance, filename):
    """Return the location of a stored media file for a Workflow."""
    workflow_id = instance.id
    image_type = instance.type
    file_extension = filename.rpartition(".")[2]

    return f"workflow_system/workflows/{workflow_id}/{image_type}.{file_extension}"