Added texture class and fixed color issue