I tried with your code but it does not work, using same versions.
The code runs correctly and the image is correctly showed on video (via  plt.show()) but it does not write the figure to Tensorboard. The strange behavior is that if i try with a random image(taken for example from my dataset), now it writes correctly to Tensorboard. I can’t see where the problem might be.
Anyway, thank you so much for your patience!