As I wrote this post, I found the answer.
From the Documentation page there is an instruction to register the image decoder:
What's missing in the example is the base class:
And of course adding the reference to the base class library!
Obvious once you find it!