code: def get_content(self):
          
  
          self.content = self.book.get_template('cover')
  
          tree = parse_string(super(EpubCoverHtml, self).get_content())
          tree_root = tree.getroot()
  
          images = tree_root.xpath('//xhtml:img', namespaces={'xhtml': NAMESPACES['XHTML']})
  
          images[0].set('src', self.image_name)
          images[0].set('alt', self.title)
  
          tree_str = etree.tostring(tree, pretty_print=True, encoding='utf-8', xml_declaration=True)
  
          return tree_str
docs: Returns content for cover page as HTML string. Content will be of type 'str' (Python 2) or 'bytes' (Python 3).
  
          :Returns:
            Returns content of this document.