Specifying sizes for the element

Note: this sample uses the picturefill polyfill to provide backwards compatibility for browsers that do not support the element.

a lighthouse

The image should always be 50% of the viewport width and show at the correct pixel density.