Use Parallel.processor_count for processor-intensive tasks
Repeatedly attempt to capture an image upon failure