Working texture export, fails tests though due to initialisation error.
Need to add re-initialisation code.