Fix bug with inline expansion with Unanimate Gif

Issue #273
Merge pull request #286 from marktaiwan/master

Fix bug with inline expansion with Unanimate Gif