High speed image encoding and compositing