Add ability to disable file preview