Implement the loading texture function.