Camera2: save the picture when rotate the device

If we rotate the device, the panoroma can not mosaic image, so if
we rotate the device, we should stop capture immediately and save the
previous capture frames.

Change-Id: I4ba304957d4083b4ae58c084239d6dc3d7f4dc89
CRs-fixed: 627105