configure.ac: Add option to configure the image directory.