Read PGM files and create utils file