Sample code for an iOS app for compositing images using chroma keys