Using average hash for Image similarity