Remove duplicate self=this in PngEncoder