Paste and convert image in one button

I enjoy opening image in the Lister Viewer Pane, selecting and copying a part of the image in a square shape and then pasting it into a folder. I then use this function to make a thumbnail.

<?xml version="1.0"?> <button backcol="none" display="both" icon_size="large" textcol="none"> <label>Thumbnail</label> <icon1>#default:viewerpane2</icon1> <function type="normal"> <instruction>Image CONVERT=jpg HERE Height=240 WIDTH=240 PRESERVEASPECTRATIO AS folder.jpg</instruction> <instruction>Delete Quiet</instruction> </function> </button>

My question is this; might it be possible to combine the functions of pasting and converting into one button? I have tried to figure it out on my own, but I am officially giving up as of this post. Thanks much.

This will paste to folder.bmp, convert that into a 240x240 folder.jpg, then delete the original folder.bmp.

Delete folder.bmp QUIET Clipboard PASTE=bmp AS=folder.bmp Image CONVERT=jpg HERE FROM=folder.bmp Height=240 WIDTH=240 PRESERVEASPECTRATIO Delete folder.bmp QUIET

You are THEE MAN Leo. Thanks very much.