Fix backdrop for images inside iframes

- document or ownerDocument or similar are very ambiguous in my code
  because of the numerous different contexts. This is just a bugfix,
  should probably have clearer organization.