Localizing images