Fixed crashes of gifterm when displaying certain GIFs