Fix Uncaught SecurityError when loading img from external URL.