Snippets are chunks of code that can be cut (snipped) and pasted into examples. We want each example to be stand-alone, so we do not keep the snippet code in a library.
Get the program parameters.
Take a screen shot from the render window and write it to a file. The file extension selects the writer to use.