Improved robustness of translate_url method

* Make sure we don't create images for static pages
* added test for imgur oneboxer