Following Pete's recommendation, setROI has to be called after addRegion