changed behavior of capture once and capture continually modes
can now stop the image_capture thread