Update coordinate to canvas