Fix the bug that the image movement fails when the "Auto Move Image" function is enabled when the image directory is not created