renderers: fix choosing best resolution
Merge pull request #3045 from FernetMenta/resfix

renderers: fix choosing best resolution