Simulating CSS 'background-size: cover' effect on HTMLImageElement with DOM resize watcher.