How to store images from my Sonoff camera on motion detections

Dear all,
I am having few Sonoff cameras (ewelink). I already managed to store images on scheduled intervals. Since camera is storing (if enabled) videos of motion detections on sd card, I would like to get images of these motion detections. Is this doable? has anyone experience with that?