Here is my code
from PIL import Image, ImageFont, ImageDraw
font = ImageFont.truetype('ClearSans-Bold.ttf', 800)
im = Image.open('grid.png')
draw = ImageDraw.Draw(im)
draw.text(
tuple(int(i/2) for i in im.size), # top left position
'8', # text
(119, 110, 101), # text color
font, # font
'mm' # anchor
)
im.save('output.png')
here is how it looks like: