created texture in the right way