Changed method of html insertion for images and links in the CKEditor