Fixed the performace of caption GIF image creation