Got the draw_rectangle function working, I forgot to set the 8th bit in the DCR register