Compute Average Hash (perceptual hash) for image likeness comparison