Not sure why you've used `pnm` here; can you pick a better variable name?