Changes from @llamerr for gifs in iframes