Fixed kivy platform detection and paint saving.