Corrected motion set up to give one directory per day, and made viewing latest images work.