Change inheritance of CameraUI to composition thereof.