cucumber/cucumber — pull request #696 by brasmusson (2014-06-22 12:08:46+00:00)
Title: Support embedding images directly in html files

This PR sets out to fix part 2 of #651 ("some kind of official option on embed images [using the HTML formatter]").

The idea is to support the following construct in step definitions:
```
encoded_img = @browser.driver.screenshot_as(:base64)
embed("#{encoded_img}",'image/png')
```
The HTML formatter will now check whether the first argument to the embed method is a file, or if it starts with the image embedding directive (```"data:image/;base64,```), and if so insert the first argument as is in the src attribute of the HTML image element. Otherwise it will insert the image embedding directive first in the content of the first argument to the embed method, and insert the result as is in the src attribute of the HTML image element.