Fixed average frame commit to support newest version of CameraActivity.