Fixed rectangle class

fixed the 'anchor points' of the rectangle class