Clarify header values
Prepare header for animated images
Add EncodeAll method for animated images
Use a single buffer
Add end-of-frame byte