def _restore_imgset(rnew, original_imageset, newresult):
    restore_sym = (set(rnew.keys()) & set(original_imageset.keys()))
    for key_sym in restore_sym:
        img = original_imageset[key_sym]
        rnew[key_sym] = img
    if (rnew not in newresult):
        newresult.append(rnew)
def _restore_imgset(rnew, original_imageset, newresult):
    restore_sym = (set(rnew.keys()) & set(original_imageset.keys()))
    for key_sym in restore_sym:
        img = original_imageset[key_sym]
        rnew[key_sym] = img
    if (rnew not in newresult):
        newresult.append(rnew)