Support caching of png transformation

This is small fix to resolve #815