Logging for used and unused images when exporting to PDF

It helped to hunt down a bug that actually was a misconfiguration of
the Server: GD was missing.