speed up presentation of file preview
Merge pull request #159 from hajder/master

Speed up presentation of file preview