The main method that creates the objects we need and starts the raytracing.
When the rendering is finished, the output image is saved to a file. In case an error occurs, an error message is printed and the program quits.