Finally figured out how to register textures