Using PHasher class to generate hashes for the images.