fixed png memory leak