Dynamical Modeling of Behaviorally Relevant Spatiotemporal Patterns in Neural Imaging Data