Add set texture function.