Body image

So this is a bit personal but in high school I had a really bad bossy image of myself. I used to do everything in my power not to be over my not so healthy goal weight. I’m talking skipping meals or exercising for hours until I feel like I burned off all of that last donut. So now that my stomach continues to grow larger every day I’m having a hard time it falling into old patterns. I want my baby to be safe and healthy and I want to escape this tunnel vision I have of myself but when I look in the mirror or try to squeeze into my old jeans I can hear that little voice in my head condemning me for allowing myself to look like this... does anyone else have this problem? And if so what do u do to cope with it?