Update Capture.cpp

Some changes