public TileGraphic(TmxTile tile, int width, int height, OffsetGenerator offsetgerenator) {
   this.width = width;
   this.height = height;
   image = toBufferedImage(tile.getImage());
   this.offsetgerenator = offsetgerenator;
 }
 public TileGraphic(TmxTile tile, OffsetGenerator offsetgerenator) {
   width = tile.getWidth();
   height = tile.getHeight();
   image = toBufferedImage(tile.getImage());
   this.offsetgerenator = offsetgerenator;
 }