refactor mandelbrot