add mising self. for photos
and missing \n at the end