Start renderer refactor, and add texture resource