support gifs.

this needs some work still.