Cleaned up code in openCVcaller and rctacquisition