PNG Writing support

This adds the ability to use PNG for screenshots.