How to crop the screenshot captured by appium?

I have captured the screenshot. It is the complete screen screenshot but i want to capture screenshot of a specific element.
Is there any way to achieve it?
Or is there any function using i can capture screenshot of any specific element?

Regards,
Jitender

We use ImageMagick:

Works great!