Optimal visual search based on a model of target detectability in natural images