// Create debug tile, and draw it on top of the loaded tile
public static PImage getDebugTile(Coordinate coord, PImage tileImage, PApplet p, boolean showDebugBorder,
boolean showTileCoordinates) {
PGraphics pg = p.createGraphics(TILE_WIDTH, TILE_HEIGHT, PApplet.P2D);
pg.beginDraw();
if (tileImage != null) {
pg.image(tileImage, 0, 0);
} else {
pg.background(250);