codes of hash for image retrieval