cleanup, moved SetTexture call to better place