added CameraPreview class