Get region from image