"The territorial principle (also territoriality principle) is a principle of public international law under which a sovereign state can prosecute criminal offences that are committed within its borders." [wikipedia]
I would say that those women committed the picture-crime on US-based servers - no against US law. But the policemen viewing the pictures from Iran committed the immoral thing of viewing uncovered "US-based" pictures in Iran - against Iran law. I say let's sue those indecent Iranian policeman!