CompressedTexImage: added support for null data.
Added buffer size checks.