pngencoder working