setVirtualForeground image size

Hi

We have been developing an internal use Zoom App, that adds pre-made images to the video feed as filters/overlays. We have wildly varying image sizes depending on the webcam model, when toggling HD on/off

Has anyone found a solution for this? Examples might be how to detect video feed size, so we can adjust the overlay sizing so that it is proportional, or something else?

Thanks!