update deprecated method createPngStream() with getPngStream()