Added option to export animated gif.