Added checks to make sure pupil rect was within image bounds so that an ...

...opencv assertion failed error is not thrown.