Implement the circle tool and fix a fill tool bug