code: def overlay(image, color):
      
      width, height = image.size
      im = Image.new("RGBA", (width, height), color)
      preview = Image.alpha_composite(image, im)
      return preview
docs: Overlay a rectangle of color (RGBA) on the image and return the result.