Adding black bars or something could be one way of fixing it, or just cropping the background image while forcing ratio on the inner object