alloced and init an array of images for the animation