Facebook native ads image aspect ratio

I am implementing native ads with Facebook Audience Network and everything works ok except that i get images with different aspects ratios (19:9, 1:1 ans 9:16). This is correct according to the documentation, but i can’t find a way to detect what aspect ration i’m getting so i can adapt the rendering of the ad based on that.

Any ideas?