qpython_priv: Avoid crash when no QPython object was ever instanced

When importing "io.thp.pyotherside" in a QML file, but no Python {}
object is created during runtime, PyOtherSide would crash at exit.
Add support for Python-based image providers. Fixes #1