Fixed some texture bugs. more bugs remaining.