Added a GetThemeFile overload that would write to a file.