Fix the bug that the stroke of Text not displayed when dragging it.Add the callbacks for methods addImage() and addText().