Deep-learning algorithm recommends ingredients and recipes based on a photo of food