From Detection to Mitigation: Addressing Bias in Deep Learning Models for Chest X-Ray Diagnosis