imgconvert: favor pixel formats without resolution loss