refined rectangle to one per image