Finished Texturecode (at least for now)