Merge composite

This pull request adds a global `merge_method` option that can be set to `composite` to use alpha compositing when merging multiple layers.

It requires a recent version of Pillow (see https://github.com/python-imaging/Pillow/pull/23).