Fixed concurrent image saving issue.