code: public boolean imagesPerceptuallySimilar(String img1, String img2) {
  		return distance(getDHash(img1), getDHash(img2)) <= 10;
  	}
docs: compares the DHash of two images and return whether they are perceptually similar (max 10
  different pixels allowed)
  
  @param img1
  @param img2
  @return true/false