Updated renderer clear function to clear not only svg content but also width and height of svg