moved texture related stuff to package .texture