### Description

A generic function `WriteImage()` is provided that selects what image writer to use based on the file extenstion and then writes the render window to the file. The following formats are supported: **BMP, JPEG, PNM, PNG, PostScript, TIFF**.

If no file extension is specified, **PNG** is assumed.

The function `WriteImage()` is also available in the Snippets.