Fix GIF rendering stability issue

Uninitialized cache values causes stability issues in systems
Cache initialized to 0 fixes it.