Simplify the method dictionary in PngWriter