use PNM writer from nihav-codec-support