'Render epochs.'

def _render_epochs(self, epo_fname, image_format):

    global_id = self._get_id()
    epochs = read_epochs(epo_fname)
    kwargs = dict(subject=self.subject, show=False)
    img = _fig_to_img(epochs.plot_drop_log, image_format=image_format, **kwargs)
    caption = ('Epochs    :    ' + epo_fname)
    show = True
    html = image_template.substitute(img=img, id=global_id, div_klass='epochs', img_klass='epochs', caption=caption, show=show, image_format=image_format)
    return html
