def copy_image_info(reference, target):
    """
    Copy image information from img1 to img2
    """
    target.set_origin(reference.origin)
    target.set_direction(reference.direction)
    target.set_spacing(target.spacing)
    return target