Fix bug #163 that prevented loading of remote images

See #163 for more info.