I think most artists create out of despair. The very nature of creation is not a performing glory on the outside it's a painful difficult search within.
The Islam of the 18th 19th and first half of the 20th century was a poor thing. Nobody bothered about it. Islam was that funny sort of pure system of beliefs that depressed people in the Middle East held as their religion.