Updated example-makedocument.py to work with imagefiledict

example-makedocument.py did not use the imagefiledict.