I added a function called copeWithSelection. It pastes the selection onto the canvas if certain tools are selected (the first 8)