finish draw rectangle