code for choosing a random picture