Delete unnecessary spaces and add link for jpeg.