Fixed encoding GIFs to base64