Updated example-makedocument.py to work with imagefiledict