#34: Fixed the problem of rendering directly to the device graphics