animated gif thumbnail generation fix