Updated rectwrapper with vec2 object.