code: def makeFigFromFile(filename,*args,**kwargs):
      
      import matplotlib.pyplot as plt
      img = plt.imread(filename)
      fig,ax = plt.subplots(*args,**kwargs)
      ax.axis('off')
      ax.imshow(img)
      return fig
docs: Renders an image in a matplotlib figure, so it can be added to reports 
      args and kwargs are passed to plt.subplots