Imported the Object class from SB6
Imported and tweaked the KTX loader from SB6