Support for writing layers to multi-layer files.

TODO: documentation (docstrings and manual)