def sitk_copy_metadata(img_source, img_target):
    """
    Copy metadata (=DICOM Tags) from one image to another

    Parameters
    ----------
    img_source : SimpleITK.Image
        Source image
    img_target : SimpleITK.Image
        Source image
    Returns
    -------
    SimpleITK.Image
        Target image with copied metadata
    """
    for k in img_source.GetMetaDataKeys():
        img_target.SetMetaData(k, img_source.GetMetaData(k))
    return img_target