added put call for updating the food if it has food id
now user successfully updates the food, post and food picture