implemented glTexImage*D and glTexSubImage*D with original arguments