 
   Offset offset(lowerX, upperX, lowerY, upperY);
 
-  generateImage(width, height, offset, filename);
+  generateImage(width, height, offset, maxThreads, filename, quiet);
 
   return 0;
 }

        abort();
    }

  int width = 640, height = 480;
  double lowerX = -2, upperX = 2;
  double lowerY = -2, upperY = 2;
  int threads = 1;
  char filename[100] = "fractal.png";
  if (svalue != NULL)
    sscanf(svalue, "%dx%d", &width, &height);
  if (rvalue != NULL)
    sscanf(rvalue, "%lf:%lf:%lf:%lf", &lowerX, &upperX, &lowerY, &upperY);
  if (tvalue != NULL)
    sscanf(tvalue, "%d", &threads);
  if (filenameArg != NULL)
    sscanf(filenameArg, "%s", filename);
  printf("svalue = %s;%dx%d\nrvalue = %s; %lf, %lf, %lf, %lf\n", svalue, width, height, rvalue, lowerX, upperX, lowerY, upperY);
  printf("tvalue = %s; %d\n", tvalue, threads);
  printf("filenameArg = %s; %s\n", filenameArg, filename);
  printf("quiet = %d\n", quiet);


#include <cuComplex.h>
#include <iostream>
#include <getopt.h>
#include <cmath>
#include "offset.h"
#include "bitmap.h"
#include "png_writer.h"
