Added support for the --image_dir and --font_dir command line switches.