Sets the number of iterations an animated image is repeated.