Under President Hassan Rohani, a relative moderate who won a second term in office with a convincing first-round victory in Iran’s May 19 presidential election, the country has welcomed foreigners as part of an effort to improve its international image and boost an economy battered by low oil prices and years of crippling international sanctions imposed over Iran’s contentious nuclear program.