It doesn't look like much but to make this work you have to have a link to the attachment in the body with a class of "anigif" which then makes an image element with the href and then deletes the link. Complicated but the only way I could think of making it work and also be more portable than having a list of gifs at the bottom of the section.