static void Main(string[] args) { Console.WriteLine("Outputing image..."); RayTracer image = new RayTracer(); image.Progress += ProgressHandler; int numberOuptutFiles = Directory.GetFiles(OUTPUT_PATH).Count(); image.Output(OUTPUT_PATH + "image_" + numberOuptutFiles + ".ppm"); Console.WriteLine("Outputing image DONE"); }