Fixed various content issues.
More useful error reporting for texture misformatting