using timers now for obtaining images; added motion detection