Write ppm image onto disk using Gz Graphics Library