Image Cropping

hello

        i need to crop the image using mouse drag,now i cropped by rectangle crop.it work perfectly.now  i need to draw a like a pencil tool an drag the covered area in the pencil tool.how can i cut image.

Thanks