Just a word to encourage you a bit. Don't beat yourself up, blame yourself, or shame yourself. These will add to and compound the issue.
Those of us who have been through it can reassure you that it will pass, that this is only for a season in your life. Keep working toward a healthier self-image and the bedwetting will miraculously subside and be left in your past.
"A burned bridge can be a gift; it prevents us from returning to a place we should have never been."