Converting images to raw data in the dispatch queue rather than the layer thread.