When the market for Frederic Edwin Church 's spectacular paintings of icebergs , volcanoes and other sublime subjects faded in the 1870 's , he retreated to upstate New York where , at the top of a hill overlooking the Hudson River , he built a Persian-style Victorian mansion that he called Olana , after an ancient fortified treasury building .