docs: def toGIF(self, **attribs):
          """
          Convert canvas to GIF bytes
          """
          im = self.toPIL(**attribs)
          sfile = io.BytesIO()
          im.save(sfile, format="gif")
          return sfile.getvalue()