Update polygon.class.js

If we calculate Top and Left by points we should take care of originX and originY
fixes @ericmandel glitches.
Thanks to him to make me spot it out.