added a function that copies extracted image to the clipboard