Swelling after start taking pill

Hi there, I just started taking pill this month and not long after that, I noticed my legs got some swelling and discoloring on it, as you can see in the picture, at first, it just two swelling them after awhile, it starts to grow in number. I went to doctor and they said maybe this is the side effect of the pill. Should I continue on drinking the pill or stop it? Or should I take another brand pill? Rn im using microgynon