Refactored RenderPng; added renderPng and writePng RasterDataSource methods.

Fixes #305