Automatic resolution selection