Added randomization on clicking the images