Added image-similarity functionality