fix up media embed plugin to work with new figures