Combine grTexSource and grTexDownloadMipmap into the same function