Neither of them are mosques. Picture 5 is a palace [1] and 9 is a public bath [2]. You can see the name of these places here [3]
1 - https://en.wikipedia.org/wiki/Chehel_Sotoun 2 - https://en.wikipedia.org/wiki/Vakil_Bath 3 - http://metro.co.uk/2016/04/09/25-incredible-photos-that-show...