Converted the display singleton to a class object with RAII.