Scale image to fit within lv_image and align right

I currently have an lv_image with a fixed width and some SVG image I load using lv_image_set_src(logo, "F:/logo.svg");

I then set lv_image_set_inner_align(logo, LV_IMAGE_ALIGN_CONTAIN);

This works and almost provides me what I want.
However, the SVG does not always match exactly the aspect ratio of the lv_image.
In the case it doesn’t match exactly, I would like for the image to align to the right side of the image (and still apply the logic of LV_IMAGE_ALIGN_CONTAIN).

How can this be solved?

I don’t think the API is flexible enough but maybe you could put the image inside a flex container? If you set the flow of the container to LV_FLEX_FLOW_ROW and align it with LV_FLEX_ALIGN_END it should technically still apply the logic of LV_FLEX_ALIGN_END