Get the region of interest of the image