Formatting and comments in PngEncoder class