Fixed random image selection algorithm