1. stimulus update, 2. ca imaging-stimulation integration, 3. ca imaging image offset calculation (not tested)