Applying concurrency to image processing