   delete[] bitmap.pixels;
 
   cudaError error = cudaGetLastError();
-  std::cout << cudaGetErrorString(error) << std::endl;
+  if (!quiet)
+    printf("%s\n", cudaGetErrorString(error));
 }
 
 int main(int argc, char** argv) {

    sscanf(tvalue, "%d", &maxThreads);
  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, maxThreads);
  printf("filenameArg = %s; %s\n", filenameArg, filename);
  printf("quiet = %d\n", quiet);

  //////////////////////////////////

  Offset offset(lowerX, upperX, lowerY, upperY);

  generateImage(width, height, offset, maxThreads, filename, quiet);

  return 0;

  cudaMalloc(&bitmap.pixels, pixelsSize);

  int threadsPerBlock1dim, numBlocksX, numBlocksY;
  threadConfigCalc(maxThreads, threadsPerBlock1dim, numBlocksX, numBlocksY, quiet);

  dim3 threadsPerBlock(threadsPerBlock1dim, threadsPerBlock1dim);
  dim3 numBlocks(numBlocksX, numBlocksY);

  calc<<<numBlocks, threadsPerBlock>>>(offset, bitmap, quiet);

  cudaDeviceSynchronize();

