workaround for strange color channel swapping problem
use best fitting mipmap for thumbnails