createImageIframe(src, isDoc) {
    return (
      '<iframe role="presentation" style="position:relative;overflow:hidden;width:475px;height:520px;' +
      'border:none;outline:none;padding:0px;margin:0px;display:flex;align-self:flex-start;border-radius:12px;' +
      'box-shadow:0px 0.3px 0.9px rgba(0, 0, 0, 0.12), 0px 1.6px 3.6px rgba(0, 0, 0, 0.16);z-index: 1;" ' +
      `${isDoc ? `srcdoc='${this.rewriteHtml(src)}'` : `src="${src}"`} />`
    )
  }
Create a html iframe element with the given src or srcdoc if isDoc is set to true.
@param {string} src
@param {boolean} isDoc
@returns {string} The html string of the iframe created.