Time was when, by the standards of the time at least, Islam was at the forefront of the world, scientifically, politically, and morally. Freedom of religion existed even within the Caliphate.
The problems then stem from the rather sad fact that the world has moved on, whereas several prominent elements of Islam have remained rather static or have even gone backwards. Clearly it's more complicated than that simple paragraph... but still. The image in the OP is highly and deliberately selective, and that deserves calling out and challenging.