Cleaned up texture functions, now fully working and fully compatible with
Studio, all systems are now implemented the same and have advanced texture
features.