select best resolution if the selected resolution is not found