Fixed bug in crop

Fixed bug in 'crop' method of Rect class.