Added suppresswarnings deprecation to preview, and removed old unused commented code from CameraActivity.