media: user more random filenames for previews.
Prevents race conditions between file updates, as was with the old scheme based on a content hash.