updated captureAndCheckPicCount