Looking at a photo of a loved one reduces pain by 44%, a study found.