Add method for getting image id wrapped in NSData.

Better then passing around a pointer.