Improve midpoints rendering