restrict all boxes be mapped into image region