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

...opencv assertion failed error is not thrown.
these can just be changed to Math.abs to make it more concise =D