[example][pnm] Two fixes for the example

Merged Timo Koch requested to merge fix/pnm-example into master

Merge request reports