uploading texture
fixing refs