title: Cucumber with Capybara, how to embed screenshot into report for each step?
body: <p>I know how to take screenshot after a failed scenario, but how do I take screenshot after each step and embed it in report?</p>
  
  <pre><code>AfterStep do |scenario|
    screenshot =  "#{SecureRandom.urlsafe_base64}.png"
    page.save_screenshot(screenshot)
    embed(screenshot, "image/png", "SCREENSHOT")
    FileUtils.rm_rf(screenshot)
  end
  </code></pre>
  
  <p>The screenshot is saved successfully, but embed method does not exist in that context. I know embed method is defined in the reporter class, how do I get hold of the reporter class in the hooks?</p>