Add support for OSD in the capture mode.