Fixed the rectangle misinterpretation in pupilRemove

pupilRemove still contains errors though.