Added an image-inserted event to the editor.