This function converts the selection into an image layer. If there is no selection, the copy of the active image layer is created.