ImageModePreviewPreference obtains current image directory.