mandelbrot: rewrote pngwriter