Query keypoint files are now generated from PGM files given.. hooray! Problem is, results are still pretty bad.