Implement Sholl_Utils.sampleImage() for more robust auto-restarts