adding a line of code to render the photos