Adding support for animated gifs

I know I'm missing tests.
Also need to update README

Adding the `frame(durationInMs)` filter. 
Adding the frames to `applyLayerFilters` makes the default code path much more complicated. Can we separate these?