add render function to fill and stroke shapes