Fix buf_type for proper alignment

The `buf_type` isn't being initialized properly in the `PngEncoder` constructor, so it's treating everything as RGBA (4-byte alignment).