Add a check to ensure that the photo exists.
Fix the bug with the first picture not showing up.