ADDED Reference counting for texture resources when using material templates
BUGFIX Reference counting, delete resource