Use unsafe textures and move some things into an app object