Added pause function to camera capture