This while loop allows multiple iterations of the user selecting more pixels to mark in fg/bg. 
The while loop in getPixelLabels handles checking for preemption/node shutdown.