Confounder-Aware Medical Data Selection for Fine-Tuning Pretrained Vision Models