Fix preview animation on uploading

When adding/uploading files, the preview is now animated.
When loading a list of files directly the preview is displayed directly.