refactored texture class, development move to develop branch.