Offer a generalized way for scripts to present generated images
We want the user to determine the way generated images are output.
For this, an global function output_image(image)
can be used. The input to the function would be a pyplot image. The function would decide based on the command line parameters which way to use for either putting the images into a file or directly displaying them.