Improved PNG generation.