Minor fix
Load pnm more efficiently