def to_ufo_background_image(self, ufo_glyph, layer):
image = layer.backgroundImage<EOL>if image is None:<EOL><INDENT>return<EOL><DEDENT>ufo_image = ufo_glyph.image<EOL>ufo_image.fileName = image.path<EOL>ufo_image.transformation = image.transform<EOL>ufo_glyph.lib[CROP_KEY] = list(image.crop)<EOL>ufo_glyph.lib[LOCKED_KEY] = image.locked<EOL>ufo_glyph.lib[ALPHA_KEY] = image.alpha<EOL>
Copy the backgound image from the GSLayer to the UFO Glyph.