Edit in JSFiddle

External resources loaded into this fiddle:

new Wallpaper.Fit('img', {
    anchor: { x: 'right', y: 'bottom' }
});
<div id=demo>
    <img id=img src="http://images.apple.com/macbookair/images/zoom-view-slide-7_1920.jpg">
</div>

<p>resize the browser window (or this box)</p>
body {
    background: #000;
}

#demo {
    position: absolute;
    left: 50px;
    right: 0;
    bottom: 0;
    top: 0;
    overflow: hidden;
}

#img { 
    width:1698px; 
    height:1013px;
}

p {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-family: sans-serif;
    font-size: 12px;
}