Add global composite and alpha functions

It might be a little simpler to implement `Composite -> String` and then define `setGlobalCompositeOperation` by composition.