improved translation transform
implemented dragging of canvas