stream the gif to reduce memory usage