Fixed missing imports and changed checkForDay

checkForDay was removed and code put inline with picamera timelapse loop
since settings inside function were local and not executed.  Also
missing some imports.  Retesting.