PGM to JPEG Converter