Fixed a nullpointerexception issue and added a default image when no photos are available