code: def copy(self):
          
          
          
          layer = Layer(None, self.img.copy(), self.x, self.y, self.name)
          layer.w = self.w
          layer.h = self.h
          layer.alpha = self.alpha
          layer.blend = self.blend
          
          return layer
docs: Returns a copy of the layer.
          
          This is different from the duplicate() method,
          which duplicates the layer as a new layer on the canvas.
          The copy() method returns a copy of the layer
          that can be added to a different canvas.