Added gif support to XML builder