Refactoring media files to the correct folder