Image pages should work now. Add logging.

Fixes #991. Just copy and paste the view from program: maybe there should be a partial, but not worth the time if it will be redesigned.