Copy origin, direction, and spacing from one antsImage to another
    
    ANTsR function: `antsCopyImageInfo`

    Arguments
    ---------   
    reference : ANTsImage
        Image to get values from.
    target  : ANTsImAGE
        Image to copy values to

    Returns
    -------
    ANTsImage
        Target image with reference header information

def copy_image_info(reference, target):
    """
    Copy origin, direction, and spacing from one antsImage to another
    
    ANTsR function: `antsCopyImageInfo`

    Arguments
    ---------   
    reference : ANTsImage
        Image to get values from.
    target  : ANTsImAGE
        Image to copy values to

    Returns
    -------
    ANTsImage
        Target image with reference header information
    """
    target.set_origin(reference.origin)
    target.set_direction(reference.direction)
    target.set_spacing(reference.spacing)
    return target