The encoded image in an NSData wrapper or null if there was an error.
This can be used from a background thread.