Find a valid image to use in the image cache.