Take a screenshot of a DOM element.