added cameraname as argument to compute roi example; added check to ensure roi is within image boundary