Add some fancy texture handling