added the insertatcaret plugin to insert the image where the cursor is positioned.