Update rect.class.js

Removed a useless translation that can be implemented without transforming the canvas.
This also is needed to put rect on par with other shapes in regards to gradients.