is there a way to save image using the xpath or id of the image
If the image is in a webview, you can get the source of the image and download it over the internet.
If the image is part of the app, you could locate the file (somehow) on the device and use the ‘pullFile’ command to download it.