Added get_components() method to the texture format. Fixed warnings.