Fixed background to invalidate and redraw background canvas if type changes.