Something seems to be up with the random function and it means that the first image never switches when step equals 1.