simple config for image-preview
plugin directory detection cleanup