Image bugfixes + more

* Fixed a crash caused by attempting to view an embedded GIF that
wxPython cannot read.
* Fixed drag-and-drop importing of images not working (at least in
Windows).
* Connectors are no longer drawn between two stylesheets with the same
tag.
* Engine.js: namespaced some loose vars into appropriate objects.