You can turn the situation around by diverting your attention from the thought of hamburger, when you see it next time. Since your affection to hamburger is not yet very strong, you can easily overcome it and save it from becoming a habit.
In the same way, you can rule over your body and use your mindful thought process to build up good or bad habits. Once you will develop the custom of saying yes to wholesome foods and no to unwholesome foods, you no more will need to struggle to maintain your slender body.