Fixed rename image data loss bug.