Fixed stream deprecations.

Updated png stream methods.