Fix image_test.go to check if something is rendered
Fix ui.go to use defer and call glfw.SwapInterval