handle broken images