Sorry to hear that you’ve been struggling with depression. Certain medical conditions, esp. those affecting the way we look, can definitely affect our self esteem and social lives.
While I’m glad to hear that your skin condition has improved with treatment, I do think it would be helpful to have a chat with a psychiatrist to find out more about your condition, and if treatment (e.g. medications or psychotherapy) can help you cope better with these difficulties.