Moved the camera preview into its own class extending from SurfaceView.