I wonder if that photo was taken during Kennedy's Naval service in the Solomon Islands in the South Pacific during World War II. The background seems to be tropical, as does the hut, and he's holding a tropical-looking snake. He also has several bandaids on his legs, and the girl in the background looks to be a nurse. (She herself also has a bandage on her knee.)