added index and food image params method to the controller
refactored the posts view, added create method to food_images controller, added resources to routes