This will throw exception when bounding rectangle is undefined. Let's make bounding rectangle mandatory parameter if we don't want the API to be used without rectangle