Stupid texture management... really needs more work