camera.py logic taking pics