Switching to 2d graphics