added for loop so that rectangle is only drawn if face is seen