Add support to animated gif through imagine