Added functions. Now able to display random img on click.