\OC\Preview should work in all scenarios, not only for displaying previews in the web browser.