Move rectmode to rectangle render method