Only redraw if the frame has changed