Fixed windows only errors PNG Encoder