Fixed a couple of issues with addImageFromUrl() in the browser