replace profile_name by 'embed' in file, thumbnail macros