How do IS market their defeats?

The so-called Islamic State (IS) have been losing territory and suffering heavy defeats to Iraqi forces. Now Mosul, the group’s last stronghold in Iraq, looks set to fall soon.

Despite the setbacks, IS's propaganda units have been stepping up their output.

But how are they managing to market these defeats to the world? Mike Thomson reports for BBC Radio 4's Today programme.