generate 1024*1024 images, and the animated gif