Fetching or calculating metafield image file's aspect ratio?

This is an amazing workaround, just tested it and worked like a charm while using metafields
Thank you!