media: fix for generating preview filenames if the inserted id is 'insert_rsc'