imagesDir config, closes #17