Automating neuroscientific image analysis