Finds image rendition that best fits a given container.