Import from https://github.com/georgeha/mandelbrot