added flags to textures