Create nextImage function which loads next image when load complete.
Change doLater period 100 to 300 milliseconds.
Modify showRandPicture to avoid loading in undefined parent element.