helper class to process image in *.ppm format distributed by NIST color FERER database