Thx. I got the selection drawn. Though it didn't seem to rescale when the canvas' size changes. Also, I'll split the renderImage into a separate thread.