     delete image;
   images.clear();
 
-  try 
+  try
   {
     while(!batch_is_full(images))
     {

    }
  }

  if (period <= 0) 
    return false;

  // TODO Check if this compares the extension correctly.

  if(sync_error == cudaSuccess && async_error == cudaSuccess)
  {
    signatures = cuda_get_zernike_signatures(images, zernike_data, cuda_images.count);
  }
  else
  {
    if (sync_error != cudaSuccess)
      print_cuda_error(sync_error, "Synchronous CUDA error occurred");
