Fix printing of image documents

Signed-off-by: Jerome Flesch <jflesch@gmail.com>