Reorganise things a little bit.
Redefine two functions in <[ %output.print; [ ... ]]> to support image handling.