part of #179
more work for #179.

Due to changed display of the portal image it now doesn’t flicker anymore,
which simplifies code a lot.
finish changes for #179. Fixes #179, fixes #49.

Please look for regressions.