cleaned up detection of image directory, no longer hardcoded in.
also added a timer of sorts so Pi will capture images for three minutes