Q: Given that taking a photo of a person is prohibited, and so is looking at the opposite gender, which of the two options below would be a lighter sin:
1. A mahram taking the photo and thus avoiding the sin of going to a non-mahram to take a photo, but the mahram is now doing a prohibited thing (i.e. taking the photo).
2. Going to a professional photo studio where the photo will be taken by a non-mahram. In this situation the mahram avoids the sin of taking the picture, but this causes an interaction between non-mahram individuals.
Which of the two is the better option?