Rewrite using struct and checking for errors
Fix transparent byte placement
Fix block writing
Add application extension block for animation
Format code
Swap transparent index an delay positions
Implement variable code size
Fix frame bounds