reorganize code, add two new functions ph_dct_imagehash_hexadecimal and ph_image_dist_with_hashes