A Machine for Gifs