def duplicate(self):
i = self.canvas.layer(self.img.copy(), self.x, self.y, self.name)<EOL>clone = self.canvas.layers[i]<EOL>clone.alpha = self.alpha<EOL>clone.blend = self.blend<EOL>
Creates a copy of the current layer.

        This copy becomes the top layer on the canvas.