def update_image_version(name: str, new_version: str):
    """returns the passed image name modified with the specified version"""
    parts = name.rsplit(':', 1)
    return f'{parts[0]}:{new_version}'