Correcting broken images