add render function to fill and stroke shapes
update function