Vendor import original pHash code and build
Virgin start
various minor tweaks to make things work, Added quick comapre & output PGM image version