Style fixes.

Now that I’ve refactored most of the class…
Fix reference to possibly invalid pointer.

Take an instance of NSData instead of a raw pointer.
Add hacky method for creating a url from an image id.
Fix image loading bug.

The image id set in the initializer pointed to garbage by when it was
used in startLoading.