Just to make sure I'm clear--you mean you would like to randomly select (either via truly random or with replacement) and then display a picture?