Fix ninja getPrimaryPhoto