NEW: TextureSource supports explicit dirty flag resetting (needed by the webView module)
NEW: Stats to python API