protected void texture(PImage image) {
    this.timage = image;

    if (image != null) {
      this.tpixels = image.pixels;
      this.twidth = image.width;
      this.theight = image.height;
      this.tformat = image.format;

      twidth1 = twidth - 1;
      theight1 = theight - 1;
      interpUV = true;
      
    } else {
      interpUV = false;      
    }
  }