Updated example-makedocument.py to use the imagefiledict