Do detection on subimages