Add optional default context. Write bg layers from settings not map.
Background layers a entirely from context, if at least one is valid.