change matching func to bag of words
del image