Add ability to disable file preview

issue : #41