Updated texture upload API