Fixed a number of bugs, some image-related

* Fixed a bug which would throw an error when attempting to chance an image's `source` property via `setLayer()`
* Fixed a bug which would prevent mouse events from working on Chrome/Win8
* Fixed a bug which would prevent the same image from being drawn twice if it hasn't yet finished loading
* Added extra whitespace to source for better readability