I use client.screencap method to get the PNG stream before I save the image like this
let stream = await client.screencap(deviceId); strea