Widget issue: image fit screen height but keep aspect ratio?

The title says it all. Can I set that the image keeps its aspect ratio but fits its height to the screen resolution?
Another thing: how do they create widgets so they work fine on all screen resolutions? (This is the reason of my original question).

Use “Scale Box”. Also you can group it with “Overlay”.