fix the image animation