Added option to set the region of interest to be used for the image capture