Hi,
It is right that the x-ray chest had to be done. It is helpful in detecting pneumonia, bronchitis and other pulmonary conditions. Hence it shall be advisable to discuss about it with your doctor. Also change in antibiotics is the right move done by your physician.
1 Doctor agrees with this answer