Exposure to nature may change the way the brain responds to processing pain, according to a study.