And change the process_foo() API to accept a processingstate now. image and video are tested, the others are UNTESTED.