The animation isn't actually generated through separate png files or anything. The width of the image is tweened to 0%, and then the new image is displayed in its place at 0% and increased back to 100% again.