The rewritten code should display any amount of pictures and the old code is static. But what the new code does is to show instantly the last image of the array and for the full delay of all images together therefore 30 seconds.The rewritten code should display any amount of