Cleaned up implementation of for converting Gifs to Gfycat links.