UIImage category to open PGM image format