public void texture(PImage image) {
    this.timage = image;
    this.tpixels = image.pixels;
    this.twidth = image.width;
    this.theight = image.height;
    this.tformat = image.format;

    twidth1 = twidth - 1;
    theight1 = theight - 1;
    interpUV = true;
  }