Added support for gif attachment