Fixed ugly white space while loading file thumbnail

Preview images are now pre-loaded before being set on the file element.

This fixes #5135 and prevents a white space to be displayed while the
thumbnails is being loaded.
Merge pull request #5466 from owncloud/files-thumbnailloadingdelaystyle

Fixed ugly white space while loading file thumbnail