fixed rotate movement and scaling of coordintes, a bug left to fix: object must rescale when resizing window.