calculate the similarity for images