added some texture stuff to the state manager. Can make better, but that will come later