fix compass raise error on image_dir already is relative path