added foodpic class and changed where it is assigned