formatting results and linking jpg