Fix the bug of upload pictures, save path issue and async issue.