Write string to declare that GIF-formatted data starts.
Rename handlers to distinguish other handlers for output.
Write the encoded image.