modular texture_mem added