a pnm library for rust