Logic loop for taking pictures.
Added motion detection (debug) logic loop.
Changed diff threshold from 90 to 45.