refactor: added new createImageHtml Events; consider mime_type for source element