added gif support