prepend f to data members and tidy up the code

in PixTestPattern