DOM framework for gif image file