PPM dump libraries. Can be called from test bench for creating a raw PPM image.