fix the issue that returns image file name not path