Add checks that the GIF creation and optimization succeeded