change window function, add hist matching to featurematch2imgs