Rename hammingDistance to distance, and added more information about perceptual hashes