Scripts for calcium imaging