cache the texture for the gui
determine transform and texture automatically