fix broken rect render, add debug, eliminate dup point_add code