I am 34 and every time I decide to work out, I find something to be depressed about like my age and the way my body look or I just feel like what ever and eat candy or some other junk food.
Maybe every time you have those feelings, maybe you can go and look at yourself in the mirror and find something that you DO like about yourself. It sounds to me that your self-esteem is controlling your eating. (Emotional eater).
I used to be an emotional eater, whenever I got upset or depressed, I'd just sit down and wolf down a whole bag of salt n' vinegar chips. That wasn't good, for sure. It's a temporary relief, and I always feel guilty afterwards.
I imagine that you are going through a similar thing, except it seems to come out from the way you perceive yourself. May I suggest that maybe you can try and come to terms as to who you are... And then build on that. That way, you're sure not to "fall down" again. Because, if your self esteem is always good, in theory, you'd not want to snack, right?
This is how I view aging- it's something that I earned. If I have some gray, so be it. I earned it. It's mine. I lived on this earth long enough to earn that reward. I do not worry about it, because there are other people out there that earned it too, and are on the same level as I am. Those people understand. In other words, I'm 31, I understand what it feels like to be 30-something. Nothing to be ashamed about. If there's any wrinkles, you own it. It's yours. There's still beauty there, just a different stage in life.
I can only think of a trick. Maybe you can try covering up all of your mirrors, from bottom up, to the point where you can only see your face? Maybe you can psychologically train yourself to love your face... And work out in the meantime. Try not to look at your body, or work out in front of a mirror. Save that for later. When you lose 10 pounds, take off the covering and marvel at the development. Cover the mirror up again. Work out, lose another 10 pounds. Take the cover off, and marvel again. Build up your self esteem.
If you have a loved one, tell him that he should be telling you how beautiful you are, tell him that he should be complimenting you.
As for the junk food, there is a technique that I employ- I remove them from the house. If there must be any, ask the owner of that junk food to keep it in his/her personal space. If that can't work, deliberately count to 10 every time you touch something in the cupboard or the refrigerator and think about what you are doing. Tell yourself "junk food is my #1 enemy. It will not defeat me. I will send it right back to hell!" And put it back.
I hope things work out for you.
Best wishes,
George