Repairing background images