working on test2.c--pictures good when starting and stopping capture inside picture taking loop, but bad when starting in init loop