I got png_writer mostly working

I figured out all of the nasty issues with putting the filter specifier
in the wrong place and other alignment issues. I still need to fix issues
associated with multiple chunks