code: def draw_image(self, ax, image):
          
          self.renderer.draw_image(imdata=utils.image_to_base64(image),
                                   extent=image.get_extent(),
                                   coordinates="data",
                                   style={"alpha": image.get_alpha(),
                                          "zorder": image.get_zorder()},
                                   mplobj=image)
docs: Process a matplotlib image object and call renderer.draw_image