Fixed panorama bug (set capture format YUV).
Fixed camera2 mode initializing.
Partially fixed switching to/from video mode in camera2 mode.