This class animates an image.