draw obj to canvas