Fixed issue with matching multiple images