Java Implementation of Perceptual Hash (pHash)