Added PNG support.

Added the ability to save images as PNG; made this the default output.
Unfortunately, there is a bug in the PNG script still, causing images to
be red.