Add animated gif support to attachment_fu