Iterative cell extraction and registration for analysis of time-lapse neural calcium imaging datasets