adding picture fucntion index.html.