Greg Helped get Textures working
Greg's fix

This is the version that Greg fixed.
You can take this and do whatever with it, im just committing it because
it works & is from Greg