Generate unique IDs for media filenames
Fixes #93