made it possible to use gifs instead of a series of images for animations