added "if" for creating CameraPreviewHandlerThread