added code for incorporation of locomotion into imaging data