updateImage(dirty);
updateImage(r);
   public void updateDirty() {      // update the image      updateImage(dirty);      // update dirty to show that we have already painted that region of the      //   screen so do not do it again.      dirty.setBounds(dirty.x,dirty.height,dirty.width,(int)(tArea.getHeight() - dirty.height));   }