Wrap user callback to Assets API in bindEnvironment