Updated to allow using rear camera for capture as well.

Updated to allow using rear camera for capture as well.