Instead of using `getRandomImagesAlbum()` to get several random images from an album, I recommend ot use the random images function of the image_album_statisics plugin as it gets a bunch of images in one go instead of one by one as the above. It is also not affected by this issue at all.
The function set of `printRandomImages()`, `getRandomImagesAlbum()` and `getRandomImages()` will get deprecated in the future (the latter two functions are even badly named as they do not get "images" but one "image"). We will keep the "picture of the day" option in a new separate function.