Perceptual Hash in swift