Correctly detect image documents:
window.ImageDocument isn't available since Firefox 25.0a1 (available only in internal pages: chrome://..., about:...)
(closes #85, related to #56)