code: def to_glyphs_background_image(self, ufo_glyph, layer):
      
      ufo_image = ufo_glyph.image
      if ufo_image.fileName is None:
          return
      image = self.glyphs_module.GSBackgroundImage()
      image.path = ufo_image.fileName
      image.transform = Transform(*ufo_image.transformation)
      if CROP_KEY in ufo_glyph.lib:
          x, y, w, h = ufo_glyph.lib[CROP_KEY]
          image.crop = Rect(Point(x, y), Size(w, h))
      if LOCKED_KEY in ufo_glyph.lib:
          image.locked = ufo_glyph.lib[LOCKED_KEY]
      if ALPHA_KEY in ufo_glyph.lib:
          image.alpha = ufo_glyph.lib[ALPHA_KEY]
      layer.backgroundImage = image
docs: Copy the background image from the UFO Glyph to the GSLayer.