Updated CaptureActivity to fix camera release problem.