'If your recipe when converted to EPUB has problems with images when
viewed in Adobe Digital Editions, call this method from within
:meth:`postprocess_html`.'

@classmethod
def adeify_images(cls, soup):

    for item in soup.findAll('img'):
        for attrib in ['height', 'width', 'border', 'align', 'style']:
            try:
                del item[attrib]
            except KeyError:
                pass
        oldParent = item.parent
        myIndex = oldParent.contents.index(item)
        item.extract()
        divtag = Tag(soup, 'div')
        brtag = Tag(soup, 'br')
        oldParent.insert(myIndex, divtag)
        divtag.append(item)
        divtag.append(brtag)
    return soup
