Set image path to selected directory.