fix links to media files