Generalizable Image Repair for Robust Visual Autonomous Racing