Fixed direct references to the png variable in the local parent scope from an asynchronous callback function leading to reference aliasing. The
callback functions are now curried.