You need an MRI of the ankles.
For one thing this would show tendinitis and if you are overweight this could be the case.
For another it would show early rheumatoid arthritis if you are developing this,
or ligament tears, etc.
In addition an x ray will now show bad veins.
You should have this instead of an MRI if the doctor is saying this is bad veins since you are at risk for blood clots.
Treatment depends on the cause.
If tendinitis, physical therapy
If bad veins then weight loss, exercise and compression stockings,,,not diuretics.
With inflammation I would use ibuprofen and the doctor can write a prescription strength.
This would cover tendinitis, arthritis, etc.
I would also suggest that physical therapy be considered.
Let me know if you have further questions just use reply